package tech.hypersense.system.converter;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.mapstruct.Mapper;
import tech.hypersense.system.model.entity.Dict;
import tech.hypersense.system.model.form.DictForm;
import tech.hypersense.system.model.vo.DictPageVO;

/**
 * @Author: HyperSense
 * @CreateTime: 2025-03-27
 * @Description: 字典 对象转换器
 * @Version: 1.0
 */
@Mapper(componentModel = "spring")
public interface DictConverter {

    Page<DictPageVO> toPageVo(Page<Dict> page);

    DictForm toForm(Dict entity);

    Dict toEntity(DictForm entity);
}
